import 'package:WebTest/chooseFood/ui/pages/detail/detail.dart';
import 'package:WebTest/chooseFood/ui/pages/main/choose_food_main.dart';
import 'package:WebTest/chooseFood/ui/pages/meal/meal.dart';
import 'package:flutter/material.dart';

class BDRouterManager {
  static final String initialRoute = BDMainScreen.routerName;

  static final Map<String, WidgetBuilder> routers = {
    BDMainScreen.routerName: (context) => BDMainScreen(),
    BDMealScreen.routerName: (context) => BDMealScreen(),
    BDDetailScreen.routerName: (context) => BDDetailScreen(),
  };

  static final RouteFactory generateRouter = (settings){
//    if (settings.name == HomeDetailPage.routerName) {
//      return MaterialPageRoute(builder: (context) {
//        return HomeDetailPage(settings.arguments);
//      });
//    }
    return null;
  };

  static final RouteFactory unknownRouter = (RouteSettings settings){
//    return MaterialPageRoute(
//        builder: (context){
//          return UnknownPage();
//        }
//    );
    return null;
  };
}
